Top 10 Articles
Forgot the Administrator's Password?
Customize a New XP Installation
Download Free Windows 2000 Resource Kit Tools
Install Windows XP Pro
How to Install Active Directory on Windows 2000
Forgot the Administrator's Password? - Reset Domain Admin Password in Windows 2000 AD
Change the Serial in Windows XP
Windows Update Problems
How to Write ISO Files to CD
How to Install Active Directory on Windows 2003
 

Read More

 

EDULEARN
 
Latest Articles
Remotely Enable Remote Desktop on Windows Server 2003
Enable Remote Desktop on Windows Server 2003
STOP Error Message after deploying Sysprep Images
Runas Command Failure
Run Active Directory Management Tools as Another User
Add Spell Checking to Internet Explorer
Unhide Recycle Bin when Dragging and Dropping Files
Quickly Share Folders from Desktop
Quickly Retrieve Windows CD Key
How to Install a Replica DC in an Existing AD Domain on Windows Server 2003
 

Read More

 

Latest MS Security Bulletins
Vulnerability in Help and Support Center Could Allow Remote Code Execution (840374): MS04-015
Vulnerability in the Microsoft Jet Database Engine Could Allow Code Execution (837001): MS04-014
Cumulative Security Update for Outlook Express (837009): MS04-013
Cumulative Update for Microsoft RPC/DCOM (828741): MS04-012
Security Update for Microsoft Windows (835732: MS04-011
 

Read More

 

Latest MS Service Packs
Windows Server 2003 SP1 - Not yet released - Due "Second half of 2004"
Exchange Server 2003 SP1 - Not yet released - Due end of May
Windows XP Pro SP2 - Not yet released - Due middle of June
Office System 2003 - Not yet released - Due end of June
ISA Server 2000 SP2
Windows XP SP1a
Windows 2000 SP4
Exchange 2000 SP3
Office XP SP3
Office 2000 SP3
 

Read More

 

Link to MCSEworld

 
MCSEworld>>>Knowledge Base>>>Tips and Tricks

By: Daniel Petri

Forgot the Administrator password - Alternate Method - The LOGON.SCR trick

Featured Product:

Windows XP/2000/NT Key - Easy to use utility to reset Windows 2003/XP/2K/NT local and domain controller administrator passwords. Download FREE version now!

This is another trick that will easily work in Windows NT 4.0 and some versions of Windows 2000. The principal is that you need to install a second instance of your OS to your HD, then manipulate the default screen saver (the one that's used if you don't move your mouse while the CTRL-ALT-DEL box appears) for the original OS.

For free 3rd party tools read Forgot the Administrator's Password?.

Windows Server 2003 Domain Admin password

This tip will NOT work for Windows Server 2003. This is because of changes in the service account with which the process runs. In Windows 2000 it was run in the Local SYSTEM account (LSA) privileges, while in Windows Server 2003 it is run with the LOCAL SERVICE account, thus resulting in far less privileges than it used to have in W2K and NT 4.0. The reason 2 new account have been introduced in 2003 is that SYSTEM Account has way too many power over the system and the system could be compromised by exploiting almost any system service. The Microsoft's solution was to introduce 2 less powerful accounts (LOCAL SERVICE and NETWORK SERVICE) and make some services run in the context of those accounts instead of LSA.

To successfully reset the Domain Admin password on Windows Server 2003 Active Directory please read the Forgot the Administrator's Password? - Reset Domain Admin Password in Windows Server 2003 AD page.

Windows 2000 Domain Admin password

To successfully reset the Domain Admin password on Windows 2000 Active Directory please read the Forgot the Administrator's Password? - Reset Domain Admin Password in Windows 2000 AD page.

The LOGON.SCR trick

To successfully reset the local administrator's password on Windows NT and some versions of Windows 2000 follow these steps:

  1. Install an alternate copy of Windows NT or Windows 2000.

You must install this instance of NT/2000 on a different folder than WINNT, otherwise you'll end up with the same bad situation. Use ALTWINNT for example.

It is best that you install the alternate instance of the OS into a different partition than the one you have your original installation. You'll delete this folder anyway, and it's best that you just format that partition after you're done. Formatting the partition will be much easier than deleting individual files and folders.

Also, if you lost your password on NT - install a new instance of NT, not Windows 2000, as doing so will ruin your old NT installation (because of the difference between the NTFS versions). Same goes for W2K, XP and Windows Server 2003. Always install the same OS.

Note: On Windows NT 4.0 machines that were installed out-of-the-box you do not have to install a fresh copy if you still have access as a regular user to the system. E.g. if you can log-on as a regular, non-administrator user, you can still manipulate the file's permissions. This is simply because NT's default permissions are set for Everyone - Full Control. This is not true on W2K/XP/2003 machines.

  1. Boot the alternate install.

  2. Use Control Panel/System/Startup (for NT) or Control Panel/System/Advanced/Startup and Recovery for W2K to change the default boot instance back to your original install.

Lamer note: If you don't do that you'll end up booting into the alternate installation next time you turn on your computer. You don't want that, do you?

  1. Open Explorer. Browse to your original Windows NT/2000 folder, navigate to the %systemroot%\System32 sub-folder.

Lamer note: %systemroot% is a system variable used to point to the folder where NT/2000 is installed, usually \WINNT in NT/2000, or \WINDOWS in XP/2003.

  1. Save a copy of LOGON.SCR, the default logon screen saver, anywhere you like. Just remember where you've placed it. You can also just rename the file to something you'll remember later, I user LOGON.SC1.

Lamer note: To rename a file use the REN command in the Command Prompt window, or just select the file in Windows Explorer and press F2.

  1. Delete the original LOGON.SCR from the %systemroot%\System32 sub-folder. It is not necessary to delete the file if you renamed it, you can leave it there.

Note: You might not be able to delete the LOGON.SCR file because of permission settings. Regular users can only read and execute the file, not delete it. If that is the case (and it is in W2K, XP and Windows Server 2003) then you need to take ownership of the file and give the EVERYONE group FULL CONTROL permissions.

Lamer note: In order to take ownership of a file right-click it, select Properties, select the Security tab, click Advanced, and then click on the Owner tab. Select one of the users found in the list, click ok all the way out.

In order to change the LOGON.SCR permissions follow the previous instructions, in the Security tab click Add and browse to the Everyone group. Add it and make sure you give it Full Control. Click Ok all the way out.

  1. Make a copy CMD.EXE in the %systemroot%\System32 sub-folder. CMD.EXE is located in %systemroot%\system32.

Lamer note: In order to copy a file via GUI, select the file, right-click and chose Copy, then go to the destination folder, right click the folder name and select Paste. You can also use the keyboard by typing CTRL-C to Copy, CTRL-V to Paste.

  1. Rename the copy of CMD.EXE to LOGON.SCR.

Lamer note: See step #5.

  1. Shutdown and restart your computer. Boot into the original install.

  2. Wait for the logon screen saver to initiate - around 15 minutes. Oh, and no, do NOT move your mouse while you wait, duh...

After the screensaver is initiated, instead of running the normal LOGON.SRC actual screensaver, it will run the renamed CMD.EXE file (which is now called LOGON.SCR), and will actually open a CMD prompt in the context of the local system account.

In step #7 you could have used EXPLORER.EXE instead of CMD.EXE, and in that case a My Computer window will pop up.

Note: As noted earlier on this page, there is a way to make the wait time shorter, but you'll need to dig into the Registry for that.

  1. Open the CMD.EXE prompt (it should already be opened if you've used CMD.EXE in step #7) and type:

net user administrator 123456

This will reset the local administrator (or domain admin if you are doing this trick on a DC) password to 123456.

Lamer note: You can, of course, use ANY password you want...

  1. Delete the LOGON.SCR from %systemroot%\System32.

  2. Rename the saved default screen saver from step 5 back to LOGON.SCR.

  3. If you wish to remove the alternate install:

  • Delete its' folder.

  • ATTRIB -R -S -H c:\BOOT.INI

  • Edit c:\BOOT.INI and remove the alternate install's entries.

If you've used a different partition to install the alternate install then now you can simply delete or format that partition if you don't need it anymore, plus edit c:\BOOT.INI and remove the alternate installation entries.

This trick has been tested a zillion times. Don't bother to tell me it doesn't work, it does (for Windows NT and some versions of Windows 2000), and that's a fact.

Related articles

You may find these related articles of interest to you:

 

up

 

Page updated: 11-05-2004


www petri.co.il

The best Computer Based Training (CBT)

Test your skills with realistic exam simulators for A+, MCSE, Network+, CCNA, etc. Click here.

Read More

 

GFI LANguard Network Security Scanner

Automatically detect security vulnerabilities on your network with GFI LANguard Network Security Scanner! Free version available for download!

Read More

 

GFI Network Server Monitor

Automatic network & server monitoring made easy with GFI Network Server Monitor! A freeware version available for download!

Read More

 

Sponsor MCSEworld

Bandwidth costs are growing, server hosting is expensive. Help me keep the site free for all.

Read More

  Copyright © 1998 Daniel Petri Ltd. No portion may be reproduced without my written permission. Microsoft, MS-DOS, Windows, Windows 2000, Windows XP, Windows Server 2003, Windows NT, Windows 98, Windows 95 are either registered trademarks or trademarks of Microsoft Corporation in the U.S.A. and other countries. All other names are registered trademarks of their respective companies. Should any right be infringed, it is totally unintentional. Send me an e-mail and I will promptly and gladly rectify it.